/**
 * 文件名：SmsMessageImpl.java
 *
 * 创建人：虞云波 - .com
 *
 * 创建时间：2017年11月1日 上午11:43:58
 *
 * 版权所有：江苏晟邦网络科技有限公司
 */
package com.cbwl.eoas.common.util.sms;

import com.cbwl.eoas.common.file.SendMessagePropertiesUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>[描述信息：说明类的基本功能]</p>
 *
 * @author 虞云波 - yuyunbo@3856.cc
 * @version 1.0 Created on 2017年11月1日 上午11:43:58
 */
public class SmsMessageImpl implements IBaseSmsMessage {

	private static Logger _log = LoggerFactory.getLogger(SmsMessageImpl.class);
	static String md_bsurl = "";
	static String md_dsurl = "";
	static String md_account = "";
	static String md_password = "";
	static boolean needstatus = true;
	static String md_product = "";
	static String md_extno = "";
	
	
	
	static{
		 md_bsurl = SendMessagePropertiesUtil.getValue("md_bsurl");
		 md_dsurl = SendMessagePropertiesUtil.getValue("md_dsurl");
		 md_account = SendMessagePropertiesUtil.getValue("md_account");
		 md_password = SendMessagePropertiesUtil.getValue("md_password");
		 needstatus = SendMessagePropertiesUtil.getBooleanValue("md_needstatus",true);
		 md_product = SendMessagePropertiesUtil.getValue("md_product");
		 md_extno = SendMessagePropertiesUtil.getValue("md_extno");
	}

	
	/**
	 * <p>及时发送</p>
	 * 
	 * @see com.cbwl.eoas.common.util.sms.IBaseSmsMessage#sendMessage(java.lang.String, java.lang.String)
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年11月1日 上午11:43:59
	 */
	@Override
	public String sendMessage(String phone, String Message) {
		
		String returnString ="0";
		try {
			 returnString = "";
//					 HttpSender.send(md_dsurl,md_account,md_password,phone,Message,needstatus,md_product,md_extno);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return returnString;
	}

	/**
	 * <p>延时发送</p>
	 * 
	 * @see com.cbwl.eoas.common.util.sms.IBaseSmsMessage#sendMessageDelay(java.lang.String, java.lang.String)
	 * @author: 虞云波 - yuyunbo@3856.cc 
	 * @date: Created on 2017年11月1日 上午11:43:59
	 */
	@Override
	public String sendMessageDelay(String phone, String Message) {
		
		
		
		return null;
		
	}

	@Override
	public String batchSendMessage(String phone, String Message) {
		return null;
	}
	
	public static void main(String[] args) {
		new SmsMessageImpl().sendMessage("18512540145","eoas测试短信");
	}

}
